<?php
if(!isset($_SESSION['usuario'])){
header("Location: index.php");
exit();
}
else{

require("../Dados/dadossql.php");

//variaveis
$acao = $_POST['acao'];
$numof = $_POST['numof'];
$hoje = date("d/m/Y");


$query = "UPDATE $banco.`ars` SET status='1', datamod = '".$hoje."', usermodifica = '".$_SESSION['matricula']."' WHERE (numof='".$numof."') LIMIT 1";

$resultado = mysqli_query($dbc, $query);
header("Location: relatorioar.php");
}
?>